package com.itheima.order.feign;

import com.itheima.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="service-user")
public interface UserFeignClient {

    @RequestMapping(value = "user/{id}",method = RequestMethod.GET)
     User findById(@PathVariable("id") Long id);
}
